package com.ton.common.entity;

import com.kypj.frame.db.annotation.MyPk;
import lombok.Data;

import java.math.BigInteger;
import java.util.Date;

/**
 * 交易实体类
 */
@Data
public class Transaction {
    @MyPk
    private Long id;

    //HASH
    private String hash;

    //交易区块高度
    private Long block;

    //交易时间戳
    private Date timeStamp;

    //转账发起的账户地址
    private String fromAddress;

    //转账接收的账户地址
    private String toAddress;

    //货币类型 TRX 或 TRC 货币类型 (TRX=0 TRC=1)
    private Integer coinType;

    //Token名字
    private String tokenName;

    //token类型 trc10...
    private String tokenType;

    //金额
    private BigInteger amount;

    //是否确认 是否确认(0=未确认 1=已确认)
    private Integer isConfirm;

    //交易状态 SUCCESS
    private String contractRet;
}
